package com.dcn.sign.repository;

import com.dcn.sign.model.Staff;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author xi.yang
 */
public interface StaffRepository extends MongoRepository<Staff, String> {
    boolean existsByName(String name);
    Staff findByName(String name);
}
